<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0" name="viewport">

  <title>Mamba Bootstrap Template - Index</title>
  <meta content="" name="descriptison">
  <meta content="" name="keywords">

  <!-- Favicons -->
  <link href="static/assets/img/favicon.png" rel="icon">
  <link href="static/assets/img/apple-touch-icon.png" rel="apple-touch-icon">

  <!-- Google Fonts -->
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,600,600i,700,700i,900" rel="stylesheet">

  <!-- Vendor CSS Files -->
  <link href="static/assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  <link href="static/assets/vendor/icofont/icofont.min.css" rel="stylesheet">
  <link href="static/assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
  <link href="static/assets/vendor/animate.css/animate.min.css" rel="stylesheet">
  <link href="static/assets/vendor/venobox/venobox.css" rel="stylesheet">
  <link href="static/assets/vendor/aos/aos.css" rel="stylesheet">

  <!-- Template Main CSS File -->
  <link href="static/assets/css/style.css" rel="stylesheet">

</head>

<body>
    {% include "header.html"  %}

    <!-- ======= Our Team Section ======= -->
    <section id="team" class="team">
      <div class="container">

        <div class="section-title">
          <h2>豆瓣电影Top250数据分析</h2>
          <p>应用爬虫、Flask框架、Echarts、WordCloud等技术实现</p>
        </div>

      </div>
    </section><!-- End Our Team Section -->

    <!-- ======= Counts Section ======= -->
{#    <section class="counts section-bg">#}
      <div class="container">
        <!--boostrap4 版本 分页-->
        <nav>
{#        <ul class="pagination justify-content-center">#}
        <ul class="pagination">
            <li class="page-item {{"disabled" if cur_page==1}}"><a class="page-link" href="/movie?page={{cur_page-1}}">&laquo;</a></li>
            <li class="page-item {{"disabled" if cur_page==1}}"><a class="page-link" href="/movie?page=1">首页</a></li>
            {% for page in pages %}
            <li class="page-item {{"active" if cur_page==page}}"><a class="page-link" href="/movie?page={{ page }}">{{ page }}</a></li>
            {% endfor %}
            <li class="page-item {{"disabled" if cur_page==25}}"><a class="page-link" href="/movie?page=25">尾页</a></li>
            <li class="page-item {{"disabled" if cur_page==25}}"><a class="page-link" href="/movie?page={{cur_page+1}}">&raquo;</a></li>
        </ul>
        </nav>
          <table class="table table-light">
              <tr>
                  <th>排名</th>
                  <th>中文名</th>
{#                  <th>外文名</th>#}
                  <th>评分</th>
                  <th>人数</th>
                  <th>概述</th>
{#                  <th>导演/演员</th>#}
                  <th>年份</th>
                  <th>国家</th>
                  <th>关键词</th>
              </tr>
              {% for movie in movies %}
                  <tr>
                      <td>&nbsp&nbsp{{ movie[0] }}&nbsp&nbsp</td>
                      <td>
                          <a href="{{ movie[1] }}" target="_blank">
                              {{ movie[3] }}
                          </a>
                      </td>
{#                      <td>{{ movie[4] }}</td>#}
                      <td>&nbsp&nbsp{{ movie[5] }}&nbsp&nbsp</td>
                      <td>{{ movie[6] }}</td>
                      <td>{{ movie[7] }}</td>
{#                      <td>{{ movie[8] }}</td>#}
                      <td>{{ movie[9] }}</td>
                      <td>{{ movie[10] }}</td>
                      <td>{{ movie[11] }}</td>
                  </tr>
              {% endfor %}
          </table>
      </div>
{#    </section><!-- End Counts Section -->#}

  <!-- ======= Footer ======= -->
  <footer id="footer">

    <div class="container">
      <div class="copyright">
        &copy; Copyright <strong><span>Mamba</span></strong>. All Rights Reserved
      </div>
    </div>
  </footer><!-- End Footer -->

  <a href="#" class="back-to-top"><i class="icofont-simple-up"></i></a>

  <!-- Vendor JS Files -->
  <script src="static/assets/vendor/jquery/jquery.min.js"></script>
  <script src="static/assets/vendor/bootstrap/js/bootstrap.js"></script>
  <script src="static/assets/vendor/jquery.easing/jquery.easing.min.js"></script>
  <script src="static/assets/vendor/php-email-form/validate.js"></script>
  <script src="static/assets/vendor/jquery-sticky/jquery.sticky.js"></script>
  <script src="static/assets/vendor/venobox/venobox.min.js"></script>
  <script src="static/assets/vendor/waypoints/jquery.waypoints.min.js"></script>
  <script src="static/assets/vendor/counterup/counterup.min.js"></script>
  <script src="static/assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
  <script src="static/assets/vendor/aos/aos.js"></script>

  <!-- Template Main JS File -->
  <script src="static/assets/js/main.js"></script>

</body>

</html>